#include <stdio.h>
#include <assert.h>
#include "thread.h"

void * thfunc(void * dummy)
{
  thfunc(dummy);
  return dummy;
}

int main()
{
  thread_t th;
  int err;

  err = thread_create(&th, thfunc, NULL);
  assert(!err);

  thread_join(th, NULL);
  printf("Je suis toujours là\n");
  return 0;
}
